//
//  Contact.m
//  Annuaire
//
//  Created by Jordan SARRE MOLINES on 04/12/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import "Contact.h"

@implementation Contact

@synthesize prenom;
@synthesize nom;
@synthesize email;

- (id)init
{
    self = [super init];
    if (self) {
        // Initialization code here.
        self.prenom = @"John";
        self.nom = @"Doe";   
    }
    
    return self;
}

//
//-(id) initWithFirstName:(NSString*) pprenom Name:(NSString*) pnom Email:(NSString*) pemail;
//{
//    self = [super init];
//    if (self) {
//        NSLog(@"Creation d'un contact : %@ %@ %@", prenom, nom, email);
//        self.prenom = [NSMutableArray  pprenom;
//        self.nom = pnom;
//        self.email = pemail;
//    }
//    return self;
//}

- (NSString *) description
{
    return [NSString stringWithFormat:@"%@ %@", 
            self.prenom, self.nom];
}
@end
